package com.flyduck.mall.oms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyduck.mall.oms.admin.vo.AdminOrderQueryReqVO;
import com.flyduck.mall.oms.admin.vo.AdminOrderRespVO;
import com.flyduck.mall.oms.domain.OmsOrder;
import org.apache.ibatis.annotations.Param;

/**
 * 订单Mapper接口
 *
 * @author flyduck
 * @date 2025-01-18
 */
public interface OmsOrderMapper extends BaseMapper<OmsOrder> {
    default OmsOrder getAppOrderBySn(String orderSn) {
        return this.selectOne(
                new LambdaQueryWrapper<OmsOrder>()
                        .eq(OmsOrder::getSn, orderSn)
        );
    }
}
